//
//  MainViewCell.m
//  AntsExpress
//
//  Created by slccper on 16/1/1.
//  Copyright © 2016年 slccper. All rights reserved.
//

#import "MainViewCell.h"

@implementation MainViewCell
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self CustomerComponent];
    }
    return self;
}
- (void)CustomerComponent {
    self.backgroundColor = [UIColor whiteColor];

}
- (void)fillViewWithObject:(clsMain *)pclsdata
{
//    double rand = drand48();
//    self.pic.backgroundColor = [UIColor colorWithRed:rand green:rand blue:rand alpha:1];
    self.pic.image = [UIImage imageNamed:pclsdata.photo];
    self.lbTitle.text=pclsdata.title;
    
}
@end
